﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PocketPatients
{
    public partial class PatientViewForm : Form
    {
        public static PatientViewForm Instance
        {
            get
            {
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
                if ((defaultInstance == null))
                {
                    defaultInstance = new PatientViewForm();
                }

                defaultInstance.AutoScrollPosition = new System.Drawing.Point(0, 0);
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default;
                return defaultInstance;
            }
        }

        private static PatientViewForm defaultInstance;

        private PatientViewForm()
        {
            InitializeComponent();
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            PatientEditForm.Instance.ShowDialog();
            this.Close();
        }
    }
}